 <div class="media note-item">
  <div class="media-left">
    {{ web_macro.user_avatar(user, '', 'avatar-sm', true) }}
  </div>
  <div class="media-body">
    <div class="content">
      {{ note.content|raw }}
    </div>
    <a href="javascript:;" class="more more-show">[{{'展开全文'|trans}}]</a>
    <div class="metas clearfix">
      {{ web_macro.user_link(user, 'name', false) }} · <span>{{ note.updatedTime|smart_time }}</span>
      {% include 'TopxiaWebBundle:Course/Note:note-mates.html.twig' %}
      <span class="metas-sns">
        <span class="icon-favour">
          <a href="javascript:;" class="js-like {% if userLike %}color-primary{% endif %}" data-like-url="{{ path('course_note_like', {noteId:note.id}) }}" data-cancel-like-url="{{ path('course_note_cancel_like', {noteId:note.id}) }}">
            <i class="es-icon es-icon-thumbup"></i>
            <span class="js-like-num">{{ note.likeNum }}</span>
          </a>
        </span>
      </span>
    </div>
  </div>
</div>
